/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.userinfo.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.longview.io.modules.grassinfo.entity.UserGrasslandInfo;
import com.longview.io.modules.livestockinfo.entity.UserLivestockInfo;
import com.longview.io.modules.sys.entity.Area;
import com.longview.io.common.persistence.DataEntity;
import com.longview.io.common.utils.excel.annotation.ExcelField;

/**
 * 用户信息Entity
 * @author zf
 * @version 2018-04-15
 */

public class UserInfoExp extends DataEntity<UserInfo> {
	
	private static final long serialVersionUID = 1L;
	private String username;		// 用户名
	private String password;		// 密码
	private String name;		// 姓名
	private Area area;		// 地区
	private String address;		// 详细地址
	private String nationType;		// 民族
	private String userType;		// 用户类型
	private String headImg;		// 头像
	private String remark;		// 备注4
	 
	@ExcelField(title="坐标", align=2, sort=25)
	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}
	@ExcelField(title="坐标", align=2, sort=25)
	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	private String lon;
	private String lat;
	 
	
	@Length(min=0, max=20, message="用户名长度必须介于 0 和 20 之间")
	@ExcelField(title="用户名", align=2, sort=25)
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=100, message="密码长度必须介于 0 和 100 之间") 
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	@ExcelField(title="姓名", align=2, sort=25)
	@Length(min=0, max=60, message="姓名长度必须介于 0 和 60 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="地区", align=2, sort=25)
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=150, message="详细地址长度必须介于 0 和 150 之间")
	@ExcelField(title="地址", align=2, sort=25)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=64, message="民族长度必须介于 0 和 64 之间")
	@ExcelField(title="民族", align=2, sort=25)
	public String getNationType() {
		return nationType;
	}

	public void setNationType(String nationType) {
		this.nationType = nationType;
	}
	
	
	@Length(min=0, max=11, message="用户类型长度必须介于 0 和 11 之间")
	@ExcelField(title="用户类型", align=2, sort=25)
	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}
	
	@Length(min=0, max=100, message="头像长度必须介于 0 和 100 之间")
	@ExcelField(title="头像", align=2, sort=25)
	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	@ExcelField(title="备注", align=2, sort=25)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}